﻿@model List<NoteTableUI.Models.IdeaModel>
@{
    ViewBag.Title = @Resources.Resources.Index;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>@Resources.Resources.IdeaList</h2>
<p>
    @Html.ActionLink(@Resources.Resources.ALinkCreateNewIdea, "Create")
</p>
<table width="100%">
    <tr>
        <td>
            @Resources.Resources.ListIdeaName
        </td>
        <td>
            @Resources.Resources.ListIdeaDescription
        </td>
        <td>
            @Resources.Resources.CreateTime
        </td>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(model => item.IdeaName)
            </td>
            <td>
                @Html.DisplayFor(model => item.IdeaDescription)
            </td>
            <td>
                @Html.DisplayFor(model => item.CreateTime)
            </td>
            <td>
                @Html.ActionLink(@Resources.Resources.ALinkEdit, "Edit", new { id = item.IdeaId })
                |
                @Html.ActionLink(@Resources.Resources.ALinkDetails, "Details", new { id = item.IdeaId })
                |
                @Html.ActionLink(@Resources.Resources.ALinkInformation, "Informations", new { ideaId = item.IdeaId })
                |
                @Html.ActionLink(@Resources.Resources.ALinkDelete, "Delete", new { id = item.IdeaId })
            </td>
        </tr>
    }
</table>
